package net.crashtoot.picasa.web.rest;

import java.util.List;

import net.crashtoot.picasa.core.model.Account;
import net.crashtoot.picasa.core.service.AccountService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/account")
public class AccountController {

    @Autowired
    private AccountService service;

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public List<Account> listAll() {
        return service.listAll();
    }
    
}
